import os

data_yaml_path = r".\mytrain\transportation\val\images"
exists = os.path.exists(data_yaml_path)
print(exists)